package com.ihisomp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 用户与科室关系
 * </p>
 *
 * @author zy
 * @since 2022-04-18
 */
@TableName("t_org_user_dept")
public class OrgUserDept implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "user_dept_key", type = IdType.INPUT)
    private String userDeptKey;

    /**
     * 用户主键
     */
    private String userKey;

    /**
     * 科室主键
     */
    private String deptKey;

    /**
     * 登陆默认科室注记：0，否；1，是
     */
    private Integer mainFlg;

    private String orgKey;

    public String getUserDeptKey() {
        return userDeptKey;
    }

    public void setUserDeptKey(String userDeptKey) {
        this.userDeptKey = userDeptKey;
    }
    public String getUserKey() {
        return userKey;
    }

    public void setUserKey(String userKey) {
        this.userKey = userKey;
    }
    public String getDeptKey() {
        return deptKey;
    }

    public void setDeptKey(String deptKey) {
        this.deptKey = deptKey;
    }
    public Integer getMainFlg() {
        return mainFlg;
    }

    public void setMainFlg(Integer mainFlg) {
        this.mainFlg = mainFlg;
    }
    public String getOrgKey() {
        return orgKey;
    }

    public void setOrgKey(String orgKey) {
        this.orgKey = orgKey;
    }

    @Override
    public String toString() {
        return "OrgUserDept{" +
            "userDeptKey=" + userDeptKey +
            ", userKey=" + userKey +
            ", deptKey=" + deptKey +
            ", mainFlg=" + mainFlg +
            ", orgKey=" + orgKey +
        "}";
    }
}
